add error checks to release & dock