Prevent non-socket related exceptions from being swallowed