Destroy all locks before to exit