Catching those pesky http 500 errors