Close activity after successfully submitting a post.