common: Prevent ctrl-c during cleanup()

Cleanup is a peace of code that should not be interrupted as it could
lead to a very weird state.