added assembly to pom and recovery from http error in the main loop.