change type of close functions from void to int
remove mouse->fd error checks when doing system calls