Added checks to Release and Dock methods