Added ip address to monitor.
Fixed bug when client don't send server address.
Added top-level catch for exceptions.