improved sending of error messages in case selenium fails to run