Improve signal handling. Fix options parsing to POSIX order only.