Initial try at filtering 502s, for testing.
Added logging in case of 502 bad gateway so you can check if it occured.
Merge pull request #16 from malexmave/feature-filter-502

Filter out "502 bad gateway" exceptions. Closes #15.