Treating error properly when seeing expired programmes. Closes #46