prevent catching errors while attached