Log exceptions in server thread