fix release to exit properly