Make fn_open and fn_close take a struct file_handle instead of char *