Bind error handler only once