Handle FileNotFoundError exception in mouse_detection()