Handle exceptions in post import