Cleanup
- fix bug in checkMessages script when http call ends with connection timeout