fixed bug in connect_to_host
fixed bug in connect_to_host

* fixed bug where exection was silently caught and ignored
* improved coding style

rosedu/vmchecker,calin-iorgulescu/vmchecker,cojocar/vmchecker,calin-iorgulescu/vmchecker,cojocar/vmchecker,rosedu/vmchecker,cojocar/vmchecker,rosedu/vmchecker,calin-iorgulescu/vmchecker,calin-iorgulescu/vmchecker,calin-iorgulescu/vmchecker,rosedu/vmchecker,rosedu/vmchecker,cojocar/vmchecker,cojocar/vmchecker,rosedu/vmchecker,calin-iorgulescu/vmchecker,cojocar/vmchecker