Catching all exceptions when user is connecting
Added smarter put