API - bail early

If the request is not api - remove event handlers

Don't detach the beforeHandle event otherwise there's no log that the
Api listener was ever listening