Remove before after events from http kernel