Added signal handling cleanup.