Initial commit for signal handling in seperate thread.