catching exception to close file handle, with statement cannot handle open expetions yet