Fixed a possible null in filehandler, setting send methods in filethread