Fix service killing from AWS.

There was a RPC system misusage that prevented the socket connection.
Moreover, the problem was not duly signalled to the caller. Both
problems have been fixed.