Added Control-C signal and its support in application.