catch general exceptions in polling