call timeouts and cean them up to avoid memory leak. Fix messages. Try to clean up stuff. Implement on error handler