abort registration if error occurs