Add shortcuts for before and after listeners
Shortcut for adding error listeners