Improves logging of unexpected error (removes print statement)