Added reference to client socket in Task object. Fixed paused and unpause commands.