[WIP] force exit on lost connection


related issues #3 #4 and #9