Handles Control signals for just shell.