mouse try catch