he had worked part-time at the magazine for four years , and during that time the team had weathered some phenomenal storms , especially during the period when blomkvist was serving a three-month sentence for libel and the magazine almost went under .