Improved stability for long term running, fixes to occasional crash problem. Removed loop in kill() and stop()