prepare error handler for real launching