correctly handle exceptions during green.locking