If you close it on May 31, you are unlikely to get the bonus. However, you should be able to close it after the statement closes and the points post. You may have up to 30 days after the statement to close and get the annual fee refunded, but to be safe, if you close by Jun 30 you should be good.