Added optional bounce on close

added property and check to make bouncing on close optional