Fixes #31 Try again if sending event fails as long as the socket is opened