raise exception on tfile open error
made local server starting more reliable