Added exception handling during post object creation