Correctly close codes
Version 0.0.3