FileTransport now first checks for valid file

This prevents weird errors later on