Basic signal handling and proper termination done.