improved error handling

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
updated remote socketIO