trap SIGINT and SIGTERM
raise error if `pip freeze` was finished in unsuccessfully