Fixed file_descriptor::close()

Previously, failed to reset file descriptor member to -1 on success.