Error handling for breakpoint methods

Added try/catch statements when executing first_enter/enter/exit
methods as they might break the is_active state of a breakpoint if they
cause an error.