cloudmonkey: add case to handle exception when quiting cloudmonkey

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>