Add SIGTERM signal handler to also call cleanup