- debug handler file not closed - (thanks to oyvind harboe for the patch)