Stops thread. Fixed #15