handler thread operational.
handlers hooked up with main thread.
added cleanup methods to prevent hangs on device rotation.