added a safeguard that stops everything after 0.5 seconds without communication

Signed-off-by: Kai Hermann <kai.uwe.hermann@gmail.com>
added a keepalive - not thread safe :D

Signed-off-by: Kai Hermann <kai.uwe.hermann@gmail.com>
Merge branch 'master' of github.com:tr0llhoehle/picard