Catch and handle exception when client sends empty command to the server