Fix issue #3, handle ctrl+C signal