added some exception handling to the file browser class