AH-81. Some small changes

Tested if the release function was working as intented and added
exception throwing