handle timeout exception in smpt connection (socket.error)