Removed unneeded code, added logger filter for exceptions.