Added clear function. Should be called if one of the ajax requests you are waiting on with waitress is not 200 ok (error)