added SIGINT Handler and Timeout