Add banhammer class and check for exceptions