Catch SessionExpiredError

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Handle badly quoted commands

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>