Closes #12: Confined signal handling to main thread.