Fix unhandled exception in show file command