Fix for #21
Increased sleep for keep alive thread to 1 second