signal handle to cleanup when interrupt received