started signal handling for sigint and sigtstp